<?php

namespace app\api\model;

use think\Model;

class CardSlide extends ApiModel
{
    public static function getList($map = [])
    {
        $sort = [
            'weigh','createtime'=>'desc'
        ];
        $data = self::where($map)
            ->order($sort)
            ->field('id',true)
            ->select();
        $res['data'] = empty($data)? [] :$data->toArray();
        return $res;
    }

}
